﻿@{
    ViewBag.Title = "BookType";
}
@using BLL;
@using Entity;
<style type="text/css">
    .aa {
        background-color: #808080;
        height: 50px;
        line-height: 50px;
        text-align: center;
    }

    th {
        width: 180px;
    }
    td {
        text-align: center;
    }
</style>
<form action="#" method="post">
    <table border="1" cellspacing="0">
        <tr>
            <th colspan="7">
                <h2 class="aa">图书类别管理</h2>
            </th>
        </tr>
        <tr>
            <th>类别名称</th>
            <th>所属类编号</th>
            <th>是否可用</th>
            <th>描述</th>
            <th>修改</th>
        </tr>
        @foreach (var item in ViewBag.tt)
        {
            <tr>
                <td>@item.TypeName</td>
                <td>@item.TypeID</td>
                <td>@(item.state==1?"可用":"不可用")</td>
                <td>@item.Note</td>
                <td><a href="../Books/UpdateType?TypeID=@item.TypeID">修改</a></td>
            </tr>
        }
        <tr>
            <td><a href="../Books/AddType">新增</a></td>
        </tr>
    </table>
</form>

